package crawler.web.beans;

import java.io.Serializable;

/**
 * @author waynechen May 15, 2012 3:02:35 PM
 */
public class Location implements Serializable {
	private static final long serialVersionUID = 4480796476570745699L;

	public void autoFillIdentity() {
		identity = country + province + city + area + businessArea$sightArea + street$sight + building + shop;
	}

	/**
	 * 景点,美食,商品的唯一性标志<br>
	 */
	private String identity;
	private String country = "";
	private String province = "";
	private String city = "";
	private String area = "";
	private String businessArea$sightArea = "";
	private String street$sight = "";
	private String building = "";
	private String shop = "";
	private String rawLocation = "";
	private Double lat = 0.0;
	private Double lng = 0.0;
	private StringBuilder traffic = new StringBuilder();

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public StringBuilder getTraffic() {
		return traffic;
	}

	public void setTraffic(StringBuilder traffic) {
		this.traffic = traffic;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getBusinessArea$sightArea() {
		return businessArea$sightArea;
	}

	public void setBusinessArea$sightArea(String businessArea$sightArea) {
		this.businessArea$sightArea = businessArea$sightArea;
	}

	public String getStreet$sight() {
		return street$sight;
	}

	public void setStreet$sight(String street$sight) {
		this.street$sight = street$sight;
	}

	public String getBuilding() {
		return building;
	}

	public void setBuilding(String building) {
		this.building = building;
	}

	public String getShop() {
		return shop;
	}

	public void setShop(String shop) {
		this.shop = shop;
	}

	public String getRawLocation() {
		return rawLocation;
	}

	public void setRawLocation(String rawLocation) {
		this.rawLocation = rawLocation;
	}

}
